package rad.framework.lang;

public class ExceptionUtil {

	public static Throwable getRootCause(Throwable e) {
		Throwable cause = e.getCause();
		if (cause == null) {
			return e;
		} else {
			return getRootCause(cause);
		}
	}
}
